<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no" />
		<meta content="yes" name="apple-mobile-web-app-capable" />
		<meta content="black" name="apple-mobile-web-app-status-bar-style">
		<meta content="telephone=no" name="format-detection" />
		<meta content="emai=no" name="format-detection" />
		<link rel="stylesheet" type="text/css" href="<?php echo STATIC_HOST;?>shared/css/shared.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo STATIC_HOST;?>gene/css/common.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo STATIC_HOST;?>gene/css/form.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo STATIC_HOST;?>gene/css/address.css" />
		<script type="text/javascript" src="<?php echo STATIC_HOST;?>shared/js/zepto-1.1.6.js"></script>
		<title>芝士妈妈在线</title>
		<script>
			Zepto(function ($) {
				function onBridgeReady() {
					WeixinJSBridge.call('hideOptionMenu');
				}

				if (typeof WeixinJSBridge == "undefined") {
					if (document.addEventListener) {
						document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
					} else if (document.attachEvent) {
						document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
						document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
					}
				} else {
					onBridgeReady();
				}
			});
		</script>
	</head>

	<body>
		<div class="wrapper">
			<header>
				<a href="/address/index"><span class="icon icon-manage"></span>管理</a>
			</header>
			<ul class="address list">
				<?php foreach ($list as $item):?>
				<li data-href="/address/choose?id=<?php echo $item['id']?>">
					<p>
						<span class="s-right"><?php echo $item['telephone']?></span> <?php echo $item['addressee']?>
					</p>
					<p><?php if($item['default_address'] == 1):?><span class="special">【默认地址】</span><?php endif;?> <?php echo $item['province'] . ' ' . $item['city'] . ' ' . $item['district'] . ' ' . $item['address']?></p>
				</li>
				<?php endforeach;?>
			</ul>
		</div>
		<script type="text/javascript" src="<?php echo STATIC_HOST;?>shared/js/shared.js"></script>
		<script type="text/javascript" src="<?php echo STATIC_HOST;?>gen/js/address.js"></script>
	</body>

</html>